// 选择省市区
const state = {
    provinceIdThreeAdd: "", //省ID
    cityIdThreeAdd: "", //市Id
    areaIdThreeAdd: "" //区Id
};

const mutations = {
    // 获取省的ID
    getprovinceIdThreeAdd(state, value) {
        state.provinceIdThreeAdd = value;
    },
    // 获取市的ID
    getcityIdThreeAdd(state, value) {
        state.cityIdThreeAdd = value;
    },
    // 获取区的ID
    getareaIdThreeAdd(state, value) {
        state.areaIdThreeAdd = value;
    },

    // 清空省和市以及区的的ID
    cleanAreaThreeAdd(state, value) {
        state.provinceIdThreeAdd = "";
        state.cityIdThreeAdd = "";
        state.areaIdThreeAdd = "";
    }
};

const actions = {};

export default {
    state,
    mutations,
    actions
};
